for each (let [oldName, newName, defaultValue] in toMigrate) {
try {
let nv = Preferences.getExt(newName, defaultValue);
let ov = Preferences.getExt(oldName, nv);
if (ov != nv) {
Preferences.setExt(newName, ov);
}
Preferences.reset(oldName);
}
catch (ex) {
debug('MM: failed ' + newName + ", ", ex);
}
}
},
// 1.0.1: #613 Multiple "slow-down" reports
_migrateResetMaxConnections: function() {
debug("resetting connection prefs");
for each (let e in ['network.http.max-connections', 'network.http.max-connections-per-server', 'network.http.max-persistent-connections-per-server']) {